#include "../include/sdf.h"
#include "../include/utils.h"
#include<stdio.h>
#include <stdlib.h>

int main()
{
    /*
    void **phDeviceHandle = (void **)malloc(8);
    int ret;
    ret = SDF_OpenDevice(phDeviceHandle);

    void *hDeviceHandle = *phDeviceHandle;

    void **phSessionHandle = (void **)malloc(8);
    SDF_OpenSession(hDeviceHandle, phSessionHandle);

    void *hSessionHandle = *phSessionHandle;

    DEVICEINFO deviceinfo;
    DEVICEINFO *pstDeviceInfo = &deviceinfo;
    SDF_GetDeviceInfo(hSessionHandle, pstDeviceInfo);
    printf("%s\n", deviceinfo.IssuerName);
    printf("%d\n", deviceinfo.StandardVersion);

    SDF_CloseSession(hSessionHandle);

    ret = SDF_CloseDevice(hDeviceHandle);
    */

/*
    unsigned char c;
    for(int i = 0; i < 15; i ++){
        Hex2Char(i, &c);
        printf("%c\t",c);
    }
    printf("\n");
*/

/*
    int i;
    for(char c = 0x30; c <= 0x39; c += 0x01){
        Char2Hex(c, &i);
        printf("%d\t", i);
    }
    for(char c = 0x41; c <= 0x46; c += 0x01){
        Char2Hex(c, &i);
        printf("%d\t", i);
    }
    printf("\n");
*/

/*
    unsigned char bs[] = "0100001011000011";
    unsigned char ba[4] = {0x00};
    Bitstr2ByteArr(bs, ba);
    printf("%s", ba);
    printf("\n");
*/

/*
    unsigned char ba[] = {0x1C, 0x5A};
    unsigned char bs[32] = {0x00};
    ByteArr2Bitstr(ba, bs);
    for(int i = 0; i < 32; i++){
        printf("%c",bs[i]);
    }
    printf("\n");
*/

    return 0;
}
